package com.dgut.courses_selecting_sys.mapper;

import com.dgut.courses_selecting_sys.dto.UserCourseListDto;
import com.dgut.courses_selecting_sys.entity.UserCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuec
 * @since 2020-08-16
 */
@Repository
public interface UserCourseMapper extends BaseMapper<UserCourse> {

    List<UserCourseListDto> listByCourseId(@Param("courseId") int courseId);

}
